<script setup>
	import {
		onLaunch
	} from '@dcloudio/uni-app';
	import {
		useUserStore
	} from '@/store';

	const userStore = useUserStore();

	onLaunch(async () => {
		// #ifdef  MP-WEIXIN
		const updateManager = uni.getUpdateManager();
		updateManager.onCheckForUpdate((res) => {
			if (res.hasUpdate) {
				updateManager.onUpdateReady((res) => {
					updateManager.applyUpdate();
					uni.clearStorage();
				});
			}
		});
		// #endif
		await userStore.getSystemInfo();
	});
</script>
<style lang="scss">
	/* 此处为style标签里面的最上面 */
	@import "styles/css/common.scss";
</style>